projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35b4131
)
Revert "tests/libtest.sh: Print non-matching file on failure"
author
Colin Walters
<walters@verbum.org>
Mon, 11 Jul 2016 19:18:34 +0000
(15:18 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Mon, 11 Jul 2016 19:30:31 +0000
(19:30 +0000)
This reverts commit
71301d18244a3a26a6ba6fd3934633ef94811a15
.
I was confused by the fact that the non-matching content was
empty and forgot we already did print it.
Reported-by: smcv
Closes: #390
Approved by: jlebon
tests/libtest.sh
patch
|
blob
|
history
diff --git
a/tests/libtest.sh
b/tests/libtest.sh
index e93b9510aedbf76a5272f946c2405576732980da..2d064299cb93b5b8e09cce93b6084d7f71a60815 100755
(executable)
--- a/
tests/libtest.sh
+++ b/
tests/libtest.sh
@@
-138,7
+138,6
@@
assert_file_has_content () {
if ! grep -q -e "$2" "$1"; then
sed -e 's/^/# /' < "$1" >&2
echo 1>&2 "File '$1' doesn't match regexp '$2'"
- cat $1
exit 1
fi
}